#include<iostream>
using namespace std;
int main()
{
	int a = 0;
	int& b = a;
	b++;
	int& c = b;
	c++;
	a++;

	cout << "a=" << a << endl;
	cout << "b=" << b << endl;
	cout << "c=" << c << endl;
	return 0;
}